#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
#include <iostream>
#include<sstream>
#include<fstream>
#include <opencv2/opencv.hpp>
#include "GxIAPI.h"
#include"DxImageProc.h"

using namespace std;
using namespace cv;
using namespace cv::dnn;

#define MEMORY_ALLOT_ERROR -1 

class DHCamera
{
public:

  DHCamera();
  ~DHCamera();
  void getSrc(Mat& img);

private:


    pthread_t g_acquire_thread = 0;             ///< 采集线程ID

    char* m_rgb_image=NULL; //增加的内容

    GX_STATUS status = GX_STATUS_SUCCESS;
    // GX_DEV_HANDLE g_device = NULL;              ///< 设备句柄
    GX_OPEN_PARAM stOpenParam;
    // bool g_get_image = false;                   ///< 采集线程是否结束的标志：true 运行；false 退出
    uint32_t nDeviceNum = 0;

    // GX_FRAME_DATA g_frame_data = { 0 };         ///< 采集图像参数
    uint32_t ret = 0;


};
